package com.example.software.vo;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class TaskVO {
    
    private Long id;
    
    private Long companyId;
    
    private String companyName;
    
    private String title;
    
    private String content;
    
    private String location;
    
    private LocalDateTime startTime;
    
    private LocalDateTime endTime;
    
    private BigDecimal salary;
    
    private String status;
    
    private String jobType;
    
    private LocalDateTime createTime;
    
    private Boolean isApplied; // 当前用户是否已申请
    
    private Boolean isOwner; // 当前用户是否是任务发布者
    
    private String applicationStatus; // 当前用户的申请状态：pending, accepted, rejected, cancelled
    
    private String assignedWorkerName; // 已分配的零工名称（当status为assigned或completed时）
    
    private List<TaskApplicationVO> applications; // 所有申请列表（仅企业用户可见）
} 